<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
  <Page.Resources>
  </Page.Resources>

<Grid Background="Black">
	<Grid.RowDefinitions>
		<RowDefinition/>
		<RowDefinition Height="8*" />
	</Grid.RowDefinitions>
	<StackPanel Grid.Row="0" Orientation="Horizontal">
	<Button>Animate
		<Button.Triggers>
			<EventTrigger RoutedEvent="Button.Click"> 
				<BeginStoryboard>
					<Storyboard>
						<DoubleAnimationUsingKeyFrames 
							Storyboard.TargetName="Camera"
      							Storyboard.TargetProperty="(OrthographicCamera.Width)"
							AutoReverse="True" RepeatBehavior="Forever">
							<DoubleAnimationUsingKeyFrames.KeyFrames>
						    		<SplineDoubleKeyFrame Value="4" KeyTime="0:0:2" KeySpline="0.5,0.15 0.85,0.95" />
							</DoubleAnimationUsingKeyFrames.KeyFrames>
						</DoubleAnimationUsingKeyFrames>
						<Point3DAnimation 
					                Storyboard.TargetProperty="Position"
					                Storyboard.TargetName="Light"
						         To="0.4,0.4,-2" Duration="0:0:3" AutoReverse="True" RepeatBehavior="Forever"/>
					</Storyboard>
				</BeginStoryboard>
			</EventTrigger>
		</Button.Triggers>
	</Button>
  </StackPanel>


      <Viewport3D Grid.Row="1">
        <Viewport3D.Camera> 
          <OrthographicCamera x:Name="Camera" Position="10,5,10" LookDirection="-2,-1,-2" UpDirection="0,1,0" Width="12"/>
        </Viewport3D.Camera>

        <Viewport3D.Children>
          <ModelVisual3D>
            <ModelVisual3D.Content>
		<Model3DGroup x:Name="WorldModels">
                       <GeometryModel3D>
                            <GeometryModel3D.Geometry>
					<MeshGeometry3D
						TriangleIndices="0,1,2 0,2,3"
						Normals="0,1,0 0,1,0"
						Positions="1,-0.5,1 1,-0.5,-1 -1,-0.5,-1 -1,-0.5,1"/>
				</GeometryModel3D.Geometry>
	                           <GeometryModel3D.Material>
						<MaterialGroup>

						</MaterialGroup>
                            </GeometryModel3D.Material> 

                        </GeometryModel3D>

             </Model3DGroup>
            </ModelVisual3D.Content>
          </ModelVisual3D>
        </Viewport3D.Children>
      </Viewport3D>
</Grid>

<!--


		                    	<EmissiveMaterial>
             		             			<EmissiveMaterial.Brush>
                    		             		<SolidColorBrush Color="Green" Opacity="1"/>
							</EmissiveMaterial.Brush>
						</EmissiveMaterial>

		                    	<DiffuseMaterial>
             		             			<DiffuseMaterial.Brush>
                    		             		<SolidColorBrush Color="Green" Opacity="0.89"/>
							</DiffuseMaterial.Brush>
						</DiffuseMaterial>


		<PointLight x:Name="Light" Color="White" Position="0.4,0.4,2"/>
		<AmbientLight Color="#00303030"/>

						<SpecularMaterial SpecularPower="2">
							<SpecularMaterial.Brush> 
								<SolidColorBrush Color="White" Opacity="1"/>
							</SpecularMaterial.Brush>
						</SpecularMaterial>



                       <GeometryModel3D>
                            <GeometryModel3D.Geometry>
					<MeshGeometry3D
						TriangleIndices="0,1,2 3,4,1 5,6,4 7,8,6 9,10,8 11,12,10 13,14,12 15,16,14 17,18,16 19,20,18 21,22,20 23,24,22 25,26,24 27,28,26 29,30,28 31,32,30 33,34,32 35,36,34 37,38,36 39,40,38 41,42,40 43,44,42 45,46,44 47,48,46 49,50,48 51,52,50 53,54,52 55,56,54 57,58,56 59,2,58 60,61,2 2,1,60 62,60,1 1,4,62 63,62,4 4,6,63 64,63,6 6,8,64 65,64,8 8,10,65 66,65,10 10,12,66 67,66,12 12,14,67 68,67,14 14,16,68 69,68,16 16,18,69 70,69,18 18,20,70 71,70,20 20,22,71 72,71,22 22,24,72 73,72,24 24,26,73 74,73,26 26,28,74 75,74,28 28,30,75 76,75,30 30,32,76 77,76,32 32,34,77 78,77,34 34,36,78 79,78,36 36,38,79 80,79,38 38,40,80 81,80,40 40,42,81 82,81,42 42,44,82 83,82,44 44,46,83 84,83,46 46,48,84 85,84,48 48,50,85 86,85,50 50,52,86 87,86,52 52,54,87 88,87,54 54,56,88 89,88,56 56,58,89 61,89,58 58,2,61 90,91,61 61,60,90 92,90,60 60,62,92 93,92,62 62,63,93 94,93,63 63,64,94 95,94,64 64,65,95 96,95,65 65,66,96 97,96,66 66,67,97 98,97,67 67,68,98 99,98,68 68,69,99 100,99,69 69,70,100 101,100,70 70,71,101 102,101,71 71,72,102 103,102,72 72,73,103 104,103,73 73,74,104 105,104,74 74,75,105 106,105,75 75,76,106 107,106,76 76,77,107 108,107,77 77,78,108 109,108,78 78,79,109 110,109,79 79,80,110 111,110,80 80,81,111 112,111,81 81,82,112 113,112,82 82,83,113 114,113,83 83,84,114 115,114,84 84,85,115 116,115,85 85,86,116 117,116,86 86,87,117 118,117,87 87,88,118 119,118,88 88,89,119 91,119,89 89,61,91 120,121,122 123,121,120 124,121,123 125,121,124 126,121,125 127,121,126 128,121,127 129,121,128 130,121,129 131,121,130 132,121,131 133,121,132 134,121,133 135,121,134 136,121,135 137,121,136 138,121,137 139,121,138 140,121,139 141,121,140 142,121,141 143,121,142 144,121,143 145,121,144 146,121,145 147,121,146 148,121,147 149,121,148 150,121,149 122,121,150 "
						Normals="0.888546,0.449181,0.09339 0.874882,0.447214,0.185962 0.894427,0.447214,0 0.849713,0.449181,0.276088 0.8171,0.447214,0.363796 0.773742,0.449181,0.44672 0.723607,0.447214,0.525731 0.663956,0.449181,0.597829 0.598489,0.447214,0.664689 0.525151,0.449181,0.722809 0.447214,0.447214,0.774597 0.363395,0.449181,0.816199 0.276393,0.447214,0.850651 0.185757,0.449181,0.873917 0.0934931,0.447214,0.889527 0,0.449181,0.893441 -0.0934931,0.447214,0.889527 -0.185757,0.449181,0.873917 -0.276393,0.447214,0.850651 -0.363395,0.449181,0.816199 -0.447214,0.447214,0.774597 -0.525151,0.449181,0.722809 -0.598489,0.447214,0.664689 -0.663956,0.449181,0.597829 -0.723607,0.447214,0.525731 -0.773742,0.449181,0.44672 -0.8171,0.447214,0.363796 -0.849713,0.449181,0.276088 -0.874882,0.447214,0.185962 -0.888546,0.449181,0.09339 -0.894427,0.447214,1.09532e-016 -0.888546,0.449181,-0.09339 -0.874882,0.447214,-0.185962 -0.849713,0.449181,-0.276088 -0.8171,0.447214,-0.363796 -0.773742,0.449181,-0.44672 -0.723607,0.447214,-0.525731 -0.663956,0.449181,-0.597829 -0.598489,0.447214,-0.664689 -0.525151,0.449181,-0.722809 -0.447214,0.447214,-0.774597 -0.363395,0.449181,-0.816199 -0.276393,0.447214,-0.850651 -0.185757,0.449181,-0.873917 -0.0934931,0.447214,-0.889527 0,0.449181,-0.893441 0.0934931,0.447214,-0.889527 0.185757,0.449181,-0.873917 0.276393,0.447214,-0.850651 0.363395,0.449181,-0.816199 0.447214,0.447214,-0.774597 0.525151,0.449181,-0.722809 0.598489,0.447214,-0.664689 0.663956,0.449181,-0.597829 0.723607,0.447214,-0.525731 0.773742,0.449181,-0.44672 0.8171,0.447214,-0.363796 0.849713,0.449181,-0.276088 0.874882,0.447214,-0.185962 0.888546,0.449181,-0.09339 0.874882,0.447214,0.185962 0.894427,0.447214,0 0.8171,0.447214,0.363796 0.723607,0.447214,0.525731 0.598489,0.447214,0.664689 0.447214,0.447214,0.774597 0.276393,0.447214,0.850651 0.0934931,0.447214,0.889527 -0.0934931,0.447214,0.889527 -0.276393,0.447214,0.850651 -0.447214,0.447214,0.774597 -0.598489,0.447214,0.664689 -0.723607,0.447214,0.525731 -0.8171,0.447214,0.363796 -0.874882,0.447214,0.185962 -0.894427,0.447214,1.09532e-016 -0.874882,0.447214,-0.185962 -0.8171,0.447214,-0.363796 -0.723607,0.447214,-0.525731 -0.598489,0.447214,-0.664689 -0.447214,0.447214,-0.774597 -0.276393,0.447214,-0.850651 -0.0934931,0.447214,-0.889527 0.0934931,0.447214,-0.889527 0.276393,0.447214,-0.850651 0.447214,0.447214,-0.774597 0.598489,0.447214,-0.664689 0.723607,0.447214,-0.525731 0.8171,0.447214,-0.363796 0.874882,0.447214,-0.185962 0.874882,0.447214,0.185962 0.894427,0.447214,0 0.8171,0.447214,0.363796 0.723607,0.447214,0.525731 0.598489,0.447214,0.664689 0.447214,0.447214,0.774597 0.276393,0.447214,0.850651 0.0934931,0.447214,0.889527 -0.0934931,0.447214,0.889527 -0.276393,0.447214,0.850651 -0.447214,0.447214,0.774597 -0.598489,0.447214,0.664689 -0.723607,0.447214,0.525731 -0.8171,0.447214,0.363796 -0.874882,0.447214,0.185962 -0.894427,0.447214,1.09532e-016 -0.874882,0.447214,-0.185962 -0.8171,0.447214,-0.363796 -0.723607,0.447214,-0.525731 -0.598489,0.447214,-0.664689 -0.447214,0.447214,-0.774597 -0.276393,0.447214,-0.850651 -0.0934931,0.447214,-0.889527 0.0934931,0.447214,-0.889527 0.276393,0.447214,-0.850651 0.447214,0.447214,-0.774597 0.598489,0.447214,-0.664689 0.723607,0.447214,-0.525731 0.8171,0.447214,-0.363796 0.874882,0.447214,-0.185962 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 "
						Positions="0,0.5,0 0.163025,0.166667,0.034652 0.166667,0.166667,0 0,0.5,0 0.152258,0.166667,0.0677894 0,0.5,0 0.134836,0.166667,0.0979642 0,0.5,0 0.111522,0.166667,0.123857 0,0.5,0 0.0833333,0.166667,0.144338 0,0.5,0 0.0515028,0.166667,0.158509 0,0.5,0 0.0174214,0.166667,0.165754 0,0.5,0 -0.0174214,0.166667,0.165754 0,0.5,0 -0.0515028,0.166667,0.158509 0,0.5,0 -0.0833333,0.166667,0.144338 0,0.5,0 -0.111522,0.166667,0.123857 0,0.5,0 -0.134836,0.166667,0.0979642 0,0.5,0 -0.152258,0.166667,0.0677894 0,0.5,0 -0.163025,0.166667,0.034652 0,0.5,0 -0.166667,0.166667,2.04101e-017 0,0.5,0 -0.163025,0.166667,-0.034652 0,0.5,0 -0.152258,0.166667,-0.0677894 0,0.5,0 -0.134836,0.166667,-0.0979642 0,0.5,0 -0.111522,0.166667,-0.123857 0,0.5,0 -0.0833333,0.166667,-0.144338 0,0.5,0 -0.0515028,0.166667,-0.158509 0,0.5,0 -0.0174214,0.166667,-0.165754 0,0.5,0 0.0174214,0.166667,-0.165754 0,0.5,0 0.0515028,0.166667,-0.158509 0,0.5,0 0.0833333,0.166667,-0.144338 0,0.5,0 0.111522,0.166667,-0.123857 0,0.5,0 0.134836,0.166667,-0.0979642 0,0.5,0 0.152258,0.166667,-0.0677894 0,0.5,0 0.163025,0.166667,-0.034652 0,0.5,0 0.326049,-0.166667,0.0693039 0.333333,-0.166667,0 0.304515,-0.166667,0.135579 0.269672,-0.166667,0.195928 0.223044,-0.166667,0.247715 0.166667,-0.166667,0.288675 0.103006,-0.166667,0.317019 0.0348428,-0.166667,0.331507 -0.0348428,-0.166667,0.331507 -0.103006,-0.166667,0.317019 -0.166667,-0.166667,0.288675 -0.223044,-0.166667,0.247715 -0.269672,-0.166667,0.195928 -0.304515,-0.166667,0.135579 -0.326049,-0.166667,0.0693039 -0.333333,-0.166667,4.08202e-017 -0.326049,-0.166667,-0.0693039 -0.304515,-0.166667,-0.135579 -0.269672,-0.166667,-0.195928 -0.223044,-0.166667,-0.247715 -0.166667,-0.166667,-0.288675 -0.103006,-0.166667,-0.317019 -0.0348428,-0.166667,-0.331507 0.0348428,-0.166667,-0.331507 0.103006,-0.166667,-0.317019 0.166667,-0.166667,-0.288675 0.223044,-0.166667,-0.247715 0.269672,-0.166667,-0.195928 0.304515,-0.166667,-0.135579 0.326049,-0.166667,-0.0693039 0.489074,-0.5,0.103956 0.5,-0.5,0 0.456773,-0.5,0.203368 0.404509,-0.5,0.293893 0.334565,-0.5,0.371572 0.25,-0.5,0.433013 0.154509,-0.5,0.475528 0.0522642,-0.5,0.497261 -0.0522642,-0.5,0.497261 -0.154509,-0.5,0.475528 -0.25,-0.5,0.433013 -0.334565,-0.5,0.371572 -0.404509,-0.5,0.293893 -0.456773,-0.5,0.203368 -0.489074,-0.5,0.103956 -0.5,-0.5,6.12303e-017 -0.489074,-0.5,-0.103956 -0.456773,-0.5,-0.203368 -0.404509,-0.5,-0.293893 -0.334565,-0.5,-0.371572 -0.25,-0.5,-0.433013 -0.154509,-0.5,-0.475528 -0.0522642,-0.5,-0.497261 0.0522642,-0.5,-0.497261 0.154509,-0.5,-0.475528 0.25,-0.5,-0.433013 0.334565,-0.5,-0.371572 0.404509,-0.5,-0.293893 0.456773,-0.5,-0.203368 0.489074,-0.5,-0.103956 0.489074,-0.5,0.103956 0,-0.5,0 0.5,-0.5,0 0.456773,-0.5,0.203368 0.404509,-0.5,0.293893 0.334565,-0.5,0.371572 0.25,-0.5,0.433013 0.154509,-0.5,0.475528 0.0522642,-0.5,0.497261 -0.0522642,-0.5,0.497261 -0.154509,-0.5,0.475528 -0.25,-0.5,0.433013 -0.334565,-0.5,0.371572 -0.404509,-0.5,0.293893 -0.456773,-0.5,0.203368 -0.489074,-0.5,0.103956 -0.5,-0.5,6.12303e-017 -0.489074,-0.5,-0.103956 -0.456773,-0.5,-0.203368 -0.404509,-0.5,-0.293893 -0.334565,-0.5,-0.371572 -0.25,-0.5,-0.433013 -0.154509,-0.5,-0.475528 -0.0522642,-0.5,-0.497261 0.0522642,-0.5,-0.497261 0.154509,-0.5,-0.475528 0.25,-0.5,-0.433013 0.334565,-0.5,-0.371572 0.404509,-0.5,-0.293893 0.456773,-0.5,-0.203368 0.489074,-0.5,-0.103956 "
						/>
                            </GeometryModel3D.Geometry>
	                           <GeometryModel3D.Material>
						<MaterialGroup>
		                    	<DiffuseMaterial>
             		             			<DiffuseMaterial.Brush>
                    		             		<SolidColorBrush Color="Blue" Opacity="1.0"/>
							</DiffuseMaterial.Brush>
						</DiffuseMaterial>
						<SpecularMaterial SpecularPower="10">
							<SpecularMaterial.Brush> 
								<SolidColorBrush Color="White" Opacity="0.6"/>
							</SpecularMaterial.Brush> 
						</SpecularMaterial>

						</MaterialGroup>
                            </GeometryModel3D.Material> 

                        </GeometryModel3D>

-->
</Page>